package com.moji.common.config;


import org.springframework.context.annotation.Configuration;

/**
 * 阿里支付配置类
 */
@Configuration
public class AlipayConfig {


    /**
     * 公众号appid
     */
//    @Value("${alipay.appid}")
    private String appId="2021004144614528";
//    private String appId="2021004172690130";
//    private String appId="2021003162696174";

    /**
     * 公钥
     */
//    @Value("${alipay.publicKey}")
    private String publicKey="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsHAWqMNfoekxS7UmQbN06Df3B0jhXENeq56Z7W/sxYR+WexLokBGFW4eBsffs8BSPrRDL8wRcWkn2OJX9rg5VJggF7wTa5ACrJY96+iRq2JCYQ5CvCZdFffdjfURR50bcJZtCBNFAYdG1A3YCcsIHffeyA3Qv+YKPeBkGtujIz9f+G2D7+vyBcAuL5fAr0CsqSn2QIo7MBIhpsUhq5ajjWo5GiA/Aa++5XZvIyhV3noG/nKSS01m2Td3qLGeoJCL5i9Tj6oPfDeg4nHWrNf6fCrak213/xndl0XR9BCfaxqccI6HcZLCYT5Sf+yYb1yWNd012QQiiyVbOmbZU1FzxQIDAQAB";
//    private String publicKey="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlI4U9BI9MAv2Z3tY2bPoXL5GHeY1ZHakOfFEcuRtnvloR0/kk44OvHEx0x1tjKFqkyawC8qdo1Gimzy90UJn/9uSz4LAykXg3YtfnDOF5jntNZ6r016U+9SdtsTJoXKuZY4SI6JE9Jh4rMDp8z8Aien6OLUZkcQUGWmQQTUY6HQPb1ThGzncU+aIVNyfrCn5mC8h7Pp6R5kV0afUiiBZvN9Te3Zc61GLFtePB/oCH2YhRtM+pi85hb8NjILQimh1tP9uZz+bymGp7fpPJBieUBdopjlFmGzqhhO13hIkovoJz4FA4lQwSvFzv53Cq7rhcBWo/7orxQNB9XlhNrj8FwIDAQAB";
//    private String publicKey="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu5jH0GSSJIAvWA06JL8GfpeIdTD+B+iupEP8XlSCRVwykDcw2HzQvS2UnBovYSwZ0ERGmY2g1WrgZ1anseKMGXp4TsNosIXxI6u/p4fgRYfbiFIy4zziXOEGIapGbLrlrTTObmzr9YgpHO/gR5Z086N6ZCsiPt2OGvGHdDYlBPKvBSt3s3F5KlTCxtEr/kwCnsorZUCkjshahvffsg2IBQ5t4coJrRbS+t/89r5EtYdOGpmyXsMSFJImw7QOzJVnldu8F33t2fv6jgWs2clH5EEAsQAES0qFi0/pc7Z0lmN3N3Xx7m9AAyxBtDgQk/u2o5G9jkWAZgIFxx/ygFKYPQIDAQAB";

    /**
     * 私钥
     */
//    @Value("${alipay.privateKey}")
    private String privateKey="MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCAyDREmk7/M2in55QdPNq9ScayBuw2xdVPqVvM9a7BLqB4/3MBa4OX84A8JareUaV4yFUg5pOIY4vFmXOCHvYe51HDr/GplTnF3raFIez6bkktkL6NwqBMrnHvzw96d/u+CyjROibCnwzyI9xIs5jXrFB7enC4XDJB7gTJJy7SgidsT90QqWSTz2WGmsgoFRIWeM8JBI8D9NoNAIQsMXV0MM1MLV4Q8JaHOMEYpUyFE7MXPIsEmPz6IH7FPCLOvg8YYH9CTNwsQahb0LbRZpXaxodhUo6apMZ+LbyVi4Qk+DsHe+S220BsPu9tmN/gJAbmmSsLzkw9mH2b9227s8D9AgMBAAECggEAAoXpoD51tcJIFqIO4NPEZVkAr5Q7JIeTuk/TIJzfo6FKO5SlqC13Eo8OwB7szhZDa65hHJfn5BAvONvcy3vXzpsxmufjkDMAQsQuR0V24yEuBdqEITri8R2p1cz0vK2FHSAS2KaPA9kh48yYEESUhgU2PnUTqEkGIwyKw3YlELK8nyGobuvQAJMiHkv6LX9x/9xx6MgdYopBxotYJzft70BSi09i9O/zJqWh4OnWUu5bm0bvkfWRNbq2M1TGKk01YpESHsmVU/K6QM/6eUk+WhS9INiQs9rfPlsoYC7J0mNLAIwfkdOGNEZbNxRubJsMwF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7Q8dJwRA2PzmPBVFlkycDHFl1sxRwQKBgQDGYquDBPLvfufxMtxf0rA5gfv8fxS/6/lo5EGSu59pBzIYfpQbxz0yGAVftrE+9lW0Q0xU8fYLq37LBN29YV58hfaA56njSnpPviHE0ImHc1MCaJ6kx+P1d+B74fUegJ6CUQdkRdao1k5+2iyTjnXuLf+7KOidFaN7IL0cwfbSUQKBgQCmYz+varIXh3vaci2Lxwg8Am0EdV6Y4VlYRUjV1Jm8XnEVSBWPJVwZiaWRA+uUKL6QipU2FMtxn3MD8Ma1g/0DL9P3NOE72BwBjMLkYHo56eCi16v6Euv/+gWiz/yT606LRC3XUAraG52Z3e47T+AaEkTZDdEHTq8KlAgKFPOJlQKBgEP+gYZQZetL9bcnlXyKO7gaIwGxlK0K9drLkOX3xHU88CCREbZLnV/T99OMTEemKk20Wy8qFwh86OIwcsd73eSUDZ60x/eNCUrXgb9xMhHopuTGcslLcYgqZBhRo6+mqa1ElGH7xczsVs8HfAu+4hCWV3YQWVmtlvCWkfqPSEdhAoGAODZdpKjaRAK8wB9E7e0vBf8Xz6LLc8DmS2EU61DpI2+Qqszwo6zOgb40FlsJssNVJkX7hQrfdKKW2+TzbQ2LZBE7fk/6LBql04w3p6pEgN5XywwsCM9ttcxFLS0xOtQLdBdzmUNsdyVPSFVnD9i7cHNtmRsG3H4juuIqGSXc5UUCgYEAvtdPKUUr4cae+dVZOgxrGr4xvz+zIUPrzjdCRX1wJyDFbdOjD9Qu5syEQbCJTUqDSN/ydOGoqR2zVVpUHoU1NWwFkOnlTBbZkYcXPVsx8YosRR55maaC6pzouLspvj0lu5vqZoXLzWfupFYfUvkb2oHd2VB/escDmZz374HXoPA=";

    /**
     * 统一下单url
     */
    private static final String ALIPAY_GATE_WAY = "https://openapi.alipay.com/gateway.do";
//    private static final String ALIPAY_GATE_WAY = "https://openapi.alipaydev.com/gateway.do";

//    @Value("${alipay.callback}")
    private String payCallbackUrl="http://47.93.153.16:8082/web/alipay/callback";

//    @Value("${alipay.returnUrl}")
    private String returnUrl="http://47.93.153.16/paySuccess?id=";


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public static String getAlipayGateWay() {
        return ALIPAY_GATE_WAY;
    }

    public String getPayCallbackUrl() {
        return payCallbackUrl;
    }

    public void setPayCallbackUrl(String payCallbackUrl) {
        this.payCallbackUrl = payCallbackUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }
}
